package ru.jexp.rcp.supply.n;

import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;

public class EkTreeFilter extends ViewerFilter
{

	private boolean showEmptyTitle = false;
	
	@Override
	public boolean select(Viewer viewer, Object parentElement, Object element)
	{
//		EkNode node = (EkNode) element;
//		if (node.isTitle() && node.getChildren().isEmpty() && !isShowEmptyTitle())
//		{
//			return false;
//		}
		return true;
	}

	public boolean isShowEmptyTitle()
	{
		return showEmptyTitle;
	}

	public void setShowEmptyTitle(boolean showEmptyTitle)
	{
		this.showEmptyTitle = showEmptyTitle;
	}
}
